/**
 * 
 */
package com.ms.game.purchase.action;

import com.ms.player.Player;
import com.ms.service.module.zone.BasicZone;
import com.xpec.c4.game.utility.GameUtility;
import com.xpec.c4.message.MessageTypes;
import com.xpec.c4.service.annotations.MessageType;
import com.xpec.c4.service.common.BaseMessageAction;

/**
 * 處理付費相關功能要求
 * 
 * @author TW15010
 */
public class PurchaseAction extends BaseMessageAction {
	@MessageType(typeCode = MessageTypes.C_PURCHASE_DATA_LIST_REQUEST)
	public void recvPurchaseDataListRequest(Object obj) {
		Player player = getPlayer();
		if (player == null) {
			return;
		}

		BasicZone zone = GameUtility.getZone(getModuleID());
		zone.recvPurchaseDataListRequest(player);
	}
	
	@MessageType(typeCode = MessageTypes.C_PURCHASE_DATA_LIST_REQUEST_IOS)
	public void recvPurchaseDataListRequest_IOS(Object obj) {
		Player player = getPlayer();
		if (player == null) {
			return;
		}

		BasicZone zone = GameUtility.getZone(getModuleID());
		zone.recvPurchaseDataListRequest_IOS(player);
	}
	
}
